﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;

namespace Srs.Sample.UI.CustomerService
{
    // as per http://geekswithblogs.net/DavidBarrett/archive/2007/11/22/117058.aspx, to enable a using statement of the proxy
    // to work propely when the proxy is in a faulted state
    public partial class CustomerServiceClient : IDisposable
    {
        public void Dispose()
        {
            if (this.State == CommunicationState.Faulted)
                this.Abort();
                
            else
                this.Close();
        }
    }
}
// if we had other proxies we'd include code to dispose of them here.  following is an example - namespaces must match up to generated classes!
namespace Srs.Sample.TestService.DealerService
{
    public partial class DealerServiceClient
    {
    }
}